-- GENERATED SPELL FOR [Crazed Mana-Wraith] --


function spell0_26746(pUnit, Event) --@Arcane Missiles,n/a--
pUnit:FullCastSpellOnTarget(33833,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26746', 629, 1)
end

function Sorts_26746(pUnit, Event)
local choix_sorts_26746 = math.random(0, 0)
if choix_sorts_26746 == 0 then
pUnit:RegisterEvent('spell0_26746', 1, 1)
end
end

function mob26746_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26746', math.random(1500, 3000), 1)
end

function mob26746_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26746_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26746_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26746, 1, 'mob26746_Action')
RegisterUnitEvent(26746, 2, 'mob26746_Leave')
RegisterUnitEvent(26746, 3, 'mob26746_Kill')
RegisterUnitEvent(26746, 4, 'mob26746_Die')
